<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <button>点我</button>
</body>
<script>
    function fn(num){
		console.log(num)
    }
    document.querySelector("button").onclick = function(){
		const script = document.createElement("script");
		script.src = "http://zhangpeiyue.com/info2?callback=fn";
		document.body.appendChild(script);
    }
</script>
</html>